package org.xxx.epms.result.feign;

import lombok.Value;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.xxx.epms.result.dto.InspectorDto;
import org.xxx.epms.result.feign.handler.InspectorFeignHandler;

@FeignClient(value = "epms-inspector",fallback = InspectorFeignHandler.class)
@Component
public interface InspectorFeign {

    @GetMapping("inspector/getInspectorByInsId")
    InspectorDto getInspectorByInsId(@RequestParam(value = "insId") Integer insId);

    @GetMapping("inspector/getInspectorByInsTel")
    InspectorDto getInspectorByInsTel(@RequestParam(value = "insTel") String insTel);
}
